﻿@model List<Proggy.Web.Cms.Sections.ISection>
<ul id="navUl">
    @foreach (var section in Model)
    { 
        <li>@Proggy.Web.Cms.Sections.SectionItem.RenderItem(section.RootItem, Html)
            @if (section.Items.Count > 0)
            { 
                <ul>
                    @foreach (var item in section.Items)
                    { 
                        <li>
                            @Proggy.Web.Cms.Sections.SectionItem.RenderItem(item, Html)
                        </li>
                    }
                </ul>
            }
        </li>
    }
</ul>
